package com.longcai.cm.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.longcai.cm.excel.anno.ExcelExport;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 用户管理
 * </p>
 *
 * @author LBX
 * @since 2024-07-30
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("fa_member")
@ApiModel(value = "FaMember对象", description = "用户管理")
public class FaMember implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("ID")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("上级推广人id")
    @TableField("pid")
    private Integer pid;

    @ApiModelProperty("openid")
    @TableField("openid")
    private String openid;

    @ApiModelProperty("昵称")
    @TableField("wxname")
    @ExcelExport(value = "昵称",sort = 1)
    private String wxname;

    @ApiModelProperty("姓名")
    @TableField("name")
    @ExcelExport(value = "姓名",sort = 2)
    private String name;

    @ApiModelProperty("头像")
    @TableField("avatar")
    private String avatar;

    @ApiModelProperty("手机号")
    @TableField("mobile")
    @ExcelExport(value = "手机号",sort = 3)
    private String mobile;

    @ApiModelProperty("身份:0=用户,1=车商员工")
    @TableField("identity")
    @ExcelExport(value = "身份",kv ="0-用户;1-车商员工", sort = 1)
    private Integer identity;

    @ApiModelProperty("所属车商")
    @TableField("cardealers_id")
    private Integer cardealersId;

    @ApiModelProperty("发布权限:0=关闭,1=开通")
    @TableField("authority")
    private Integer authority;

    @ApiModelProperty("推广权限:0=关闭,1=开通")
    @TableField("push_auth")
    private Integer pushAuth;

    @ApiModelProperty("一期积分-金币")
    @TableField("score")
    private Integer score;

    @ApiModelProperty("小程序分享码")
    @TableField("shareimage")
    private String shareimage;

    @ApiModelProperty("平台员工:0=否,1=是")
    @TableField("is_staff")
    private Integer isStaff;

    @ApiModelProperty("门店身份 0无 1店主 2店员")
    @TableField("shop_role")
    private Integer shopRole;

    @ApiModelProperty("门店id")
    @TableField("shop_id")
    private String shopId;

    @ApiModelProperty("注册日期")
    @TableField("createtime")
    private Long createtime;

    @ApiModelProperty("注销原因")
    @TableField("cancel_reason")
    private String cancelReason;


}
